Shape sensitivity analysis of the Hardy constant