Perry used his superior firepower to force Japan to open its borders to trade