Statistical emission of large fragments: A general theoretical approach