Phase model reduction and synchronization of nonlinear oscillators by a periodic force