Field optimization method of a dual-axis atomic magnetometer based on frequency-response and dynamics. (29th March 2018)