Gravar-mail: Crystal and electronic structures of substituted halide perovskites based on density functional calculation and molecular dynamics