Microwave field amplitude stabilization using Ramsey spectroscopy signal