Five teenage girls barred from travelling abroad by a judge after showing an interest in going to Syria are pupils at the same London school as three girls already thought to have fled there to join the Islamic State, the High Court has been told.