Crystal Palace are nearing a deal to sign West Ham United defender James Tomkins for an initial fee of around £10 million this summer.