Frozen-core full-CI calculation of imaginary frequency-dependent dipole polarizabilities of ground state BeH2 and the C6 dispersion coefficients of its homodimer