Double tangent method for two-periodic Aztec diamonds