DFT-Based Optimization of Morse Potential Parameters for Selected Metallic and Non-Metallic Materials