A finite-nucleus model for relativistic electronic structure calculations using a Douglas-Kroll-transformed Hamiltonian