Opaline films on patterned substrates by a simple self-assembly method