Euler's Formula and De Moivre's Formula for Quaternions