A hypoplastic model for barotropy and pyknotropy of granular soils