Slow-muon study of quaternary solar-cell materials: Single layers and p − n junctions