Design of an Efficient Framework for Fast Prototyping of Customized Human-Computer Interfaces and Virtual Environments for Rehabilitation