Linear and nonlinear optical properties of some ternary selenides