Crystal growth and frequency conversion of BaMgF4 single crystal by temperature gradient technique