A statistical thermodynamics view of electron density polarisation : application to chemical selectivity