The Atwood machine revisited using smartphones