add support for tera and peta units

PR for issue #4640