how to become a train mechanic