On the arithmetic genera and the effective genera of algebraic curves