The Muslim community in Spain has come under scrutiny after two attacks carried out by immigrants last month killed 15 people.