A method for the calculation of the effective Center of Mass of humanoid robots