Police have told a court two of the five teenagers arrested after counterterrorism raids were carried out across Sydney had videos of beheadings on their phones that were produced by the Islamic State.