Pancharatnam phase in non-separable states of light