which factors are used to calculate bmi