Effects of grain models on UV penetration into clouds