A comprehensive study on the impact of Gd substitution on structural, optical and magnetic properties of ZnO nanocrystals