Powerful earthquake hits off north Indonesia