Crystals, defects and microstructures :modeling across scales