Determination of the multipolarity of prompt electromagnetic transitions from angular distributions of conversion electrons: Part I: Method