Non-strange and strange D-meson and charm-baryon production in heavy-ion collisions measured with ALICE at the LHC