Japan PM visits Australia to step up military, energy ties