Development of an online progressive mathematical model of needle deflection for application to robotic-assisted percutaneous interventions