如图,∠B=∠D=90°,AB=AD,AF=AG,求证:AC=AE