A man who sexually assaulted two different female rail passengers within days is facing a jail sentence.