Approximate period of nonlinear oscillators with discontinuities by modified Lindstedt–Poincare method