Polarization effects in photo- and electrodisintegration of the deuteron