Quantifying balance: computational and learning frameworks for the characterization of balance in bipedal systems