[XLA:SPMD] Fix shape mismatch in reshape partitioning.
[XLA:SPMD] Fix shape mismatch in reshape partitioning.

1. move reshape's shape check from HloInstruction::CreateShape into Reshape's constructor, so that illegal reshape is caught at creation time from Clone.
2. for reshape shard major case, reshard reshape's operand based on the result sharding.
