Man sentenced for sending sexual messages to young girl online