Investigating the phase transition and properties of CaSiN2 under pressure based on first-principles calculations