Symmetries, weak symmetries and related solutions of the Grad-Shafranov equation