Simulation study of surfing acceleration in magnetized space plasmas