German court refers headscarf case to European Court of Justice