Local model for charge delocalization in partly substituted cuprate superconductors