Electronic and spin structures of manganese clusters in the photosynthesis II system