Electric fields, weighting fields, signals and charge diffusion in detectors including resistive materials