An all-optical amplifier for terahertz AM signals: A proposal