Elastic constants of defected and amorphous silicon with the environment-dependent interatomic potential