Generation of non-classical states of light and their application in deterministic quantum teleportation