Linear and nonlinear optical properties of RbTiOPO4–KTiOPO4 alloys studied from first principles