Relative Čech–Dolbeault homology and applications