Determination of phase diagrams via computer simulation: Methodology and applications to water, electrolytes and proteins