Codes over \pmb(4\pmb) and ₂×₂ and Hermitian lattices over imaginary quadratic fields