Melting and glass transitions in paraffinic and naphthenic oils