Electronic and optical properties of InAs nanocrystals