A bifunctional cloak using transformation media