In-plane spin reorientation transition in a two-dimensional ferromagnetic/antiferromagnetic system studied using Monte Carlo simulations