A Spanish court has opened an investigation into singer Julio Iglesias following sexual assault complaints from two former employees.