Analysis of flow pattern transition from segregated to slug flow in upward inclined pipes