Generalized quantum measurements with matrix product states: Entanglement phase transition and clusterization