Thin film devices for all-optical switching and processing via quadratic non-linearities