Normalized energy-based physics-informed neural network: Theory and applications to solid mechanics problems