Falkner–Skan problem for a static or moving wedge in nanofluids