Moroccan police detain 512 illegal immigrants in past week