The shifted symplectic form on the derived stack of perfect complexes