A Katanning man who sexually assaulted a child during a home burglary has been jailed for eight years.