Double pendulum: equations of motion for small oscillations