Characterization of the optimal boundaries in reversible investment problems