Heralded noiseless linear amplification and quantum channels