Nonlinear observer for synchronization of chaotic systems with application to secure data transmission