Approximate analytical and numerical solutions to the damped pendulum oscillator: Newton–Raphson and moving boundary methods