Evolution of dust extinction curves in galaxy simulation