Primordial black holes from inflaton and spectator field perturbations in a matter-dominated era