The magnetic and mechanical properties of NdFeB type permanent magnets and the effect of quenching