Method for producing acrylamide