Bernoulli's equation derivation from Euler's equation of motion