A general method for calculation of flow boiling and flow condensation heat transfer coefficients in minichannels