Compact torque and force sensors engineered for integration into robotic joint and actuator assemblies