Bounds on the Entropy of a Function of a Random Variable and their Applications