Structure optimization effects on the electronic and vibrational properties of Bi2Sr2CaCu2O8