Man who sexually assaulted two teenage girls spared jail