Comparison of Mealy and Moore State Machines: Digital Electronics and Sequential Circuits