Irreversible magnetostriction and magnetization of superconducting 2H-NbSe2 single crystals in a peak-effect regime