SynH2R: Synthesizing Hand-Object Motions for Learning Human-to-Robot Handovers