All-optical atomic magnetometers based on nonlinear magneto-optical rotation with amplitude modulated light