Doping of Mg on ZnO Nanorods Demonstrated Improved Photocatalytic Degradation and Antimicrobial Potential with Molecular Docking Analysis