Phase properties of Bloch surface waves and their sensing applications