Mathematical derivation of a rubber-like stored energy functional