Energy approach to unsaturated cyclic strength of sand