The dualizing complex of F-injective and Du Bois singularities