A biomechanical approach to prevent falls in ergonomic settings