Bonding origin of optical contrast in phase-change memory materials