On the monotonicity and critical points of the period function of some second order equations