An analytical approach for generating balanced gaits of a biped robot on stairs and sloping surfaces. (28th November 2019)