Molecular Diagnostics Of Solar And Stellar Magnetic Fields