Measuring the elastic parameters for inverse bicontinuous cubic phases