Gravar-mail: Piecewise and Unified Phase Variables in the Control of a Powered Prosthetic Leg