Perfect optical nonreciprocity in a double-cavity optomechanical system