A sexual predator has been jailed for nearly four years after assaulting two teenage girls who had been on a night out.