Design, development and testing of a lightweight and compact locking mechanism for a passive knee prosthesis