Scotland's Matthew to replace Pettersen in Solheim Cup