Ag3PO4/BiPO4 p–n heterojunction nanocomposite prepared in room-temperature ionic liquid medium with improved photocatalytic activity