Metamagnetism and thermodynamical properties in modulated systems: modelisation and application to PrNi2Si2