Formalism and applications of electrofission and photofission fragment angular distributions