Calculating the bending modulus for multicomponent lipid membranes in different thermodynamic phases