Effects of ion collisions on ion acceleration by beating electrostatic waves