Variation of the static polarizability of a two-level system near a perfect mirror