A former police officer has been convicted but will not go to jail despite asking two teenage girls for nude photographs and videos in exchange for money.