Axion term in topological insulators with broken time reversal and parity