Crystal, melted and glassy states of glucose. A molecular dynamics simulation