Absolute crystal stability and elastic constants for cubic structures