minor improvement

added switch instead of if, else if in crystal_interpolation