Phase-field modeling and electronic structural analysis of flexoelectric effect at 180° domain walls in ferroelectric PbTiO3